import { NumberLiteralType } from "typescript";

const path = "https://mock.apifox.cn/m1/1194686-0-default/cabinet/"
// interface Ifcabinet{
//     temperature:number;
//     capacity:number,
//     count:number
// }
function getCabinetByName (name:string){

    fetch(path + name,{
        method: 'GET',
    }).then((res)=>{
        return res.text();
    })
}

export {getCabinetByName}